//
//  MyUtil.h
//
//  Copyright © 2016年 apple. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

@interface MyUtil : NSObject

//创建UILabel的方法
+ (UILabel *)createLabelFrame:(CGRect)frame title:(NSString *)title textColor:(UIColor *)color textAlignment:(NSTextAlignment)textAlignment font:(UIFont *)font;

//创建UIButton的方法
+ (UIButton *)createBtnFrame:(CGRect)frame title:(NSString *)title bgImage:(NSString *)bgImageName selectBgImage:(NSString *)selectImageName image:(NSString *)imageName target:(id)target action:(SEL)action;

//创建UIImageView的方法
+ (UIImageView *)createImageViewFrame:(CGRect)frame imageName:(NSString *)imageName;



+ (UITextField *)createTextFiledFrame:(CGRect)frame placeHolder:(NSString *)placeHolder;


@end
